﻿using System;

using DBUtility.PetaPoco;

namespace Model
{
    /// <summary>
    /// 已發送設備
    /// </summary>
    [Serializable]
    [TableName("sentdevice")]
    [PrimaryKey("Id")]
    public partial class Sentdevice
    {
        #region Model
        private int _id;
		private int? _mid;
		private string _devicetoken;
        private int _type;

        /// <summary>
		/// 
		/// </summary>
		public int Id
		{
		    set { _id = value; }
		    get { return _id; }
		}
		/// <summary>
		/// 消息Id
		/// </summary>
		public int? MId
		{
		    set { _mid = value; }
		    get { return _mid; }
		}
		/// <summary>
		/// 設備編號
		/// </summary>
		public string Devicetoken
		{
		    set { _devicetoken = (value == null || value.Length <= 200 ? value : value.Substring(0, 200)); }
		    get { return _devicetoken; }
		}

        /// <summary>
        /// 类型
        /// </summary>
        public int Type
        {
            set { _type = value; }
            get { return _type; }
        }
        #endregion
    }
}